import { Component, Input } from '@angular/core';
import { RgvRoadOrientation } from 'src/components/scenarios/enums';
import { FieldMapConfig, RgvRoadConfig } from 'src/components/scenarios/models';

@Component({
  selector: 'app-road-info',
  templateUrl: './road-info.component.html',
  styleUrl: './road-info.component.scss'
})
export class RoadInfoComponent {
  orientations: RgvRoadOrientation[] = Object.values(RgvRoadOrientation);
  private _cfg: RgvRoadConfig = {
    Orientation: RgvRoadOrientation.L2R,
    OffsetMin: 0,
    OffsetMax: 1000,
    RgvField: ""
  };
  @Input()

  public get cfg(): RgvRoadConfig {
    return this._cfg;
  }
  public set cfg(value: RgvRoadConfig) {
    this._cfg = value;
  }

  @Input()
  fields: FieldMapConfig[] = [];
}
